package shuai.biz;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import shuai.model.User;

@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)
public interface UserBiz {
	@Transactional(propagation=Propagation.REQUIRED)
	public void addUsers(List<User> list);
	@Transactional(propagation=Propagation.REQUIRED)
	public void addUser(User user);
	@Transactional(propagation=Propagation.REQUIRED)
	public void delUser(int userNo);
	@Transactional(propagation=Propagation.REQUIRED)
	public void updateUser(User user);

	public User get(int userNo);

	public List<User> searchUser(User user);

	public List<User> searchUser(String hql);
}
